package edu.scau.sku.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

import java.util.Date;

/**
 * (Sku)实体类
 *
 * @author hwh
 * @since 2025-03-22 14:05:09
 */

@Tag(name = "库存数据传输对象", description = "库存vo")
@Data
public class SkuVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(name = "skuId", description = "唯一自增标识", type = "long")
    private long skuId;

    @Schema(name = "skuCode", description = "库存编号，唯一标记", type = "String")
    private String skuCode;

    @Schema(name = "skuName", description = "库存名称", type = "int")
    private String skuName;

    @Schema(name = "stock", description = "库存量", type = "Integer")
    private int stock;

    @Schema(name = "status", description = "库存状态, 0:上架, 1:下架", type = "String")
    private String status;
    @Schema(name = "size", description = "尺寸")
    private String size;
    @Schema(name = "color",description = "颜色")
    private String color;



    public SkuVo() {
    }

    public SkuVo(long skuId, String skuCode, String skuName, int stock, String status, String size, String color) {
        this.skuId = skuId;
        this.skuCode = skuCode;
        this.skuName = skuName;
        this.stock = stock;
        this.status = status;
        this.size = size;
        this.color = color;
    }

    public SkuVo(String skuCode, String skuName, int stock, String status ) {
        this.skuCode = skuCode;
        this.skuName = skuName;
        this.stock = stock;
        this.status = status;
    }
    @Override
    public String toString() {
        return "SkuVo{" +
                "skuId=" + skuId +
                ", skuCode='" + skuCode + '\'' +
                ", skuName='" + skuName + '\'' +
                ", stock=" + stock +
                ", status='" + status + '\'' +
                '}';
    }
}
